import 'babel-polyfill'
import Vue from 'vue'
import router from './router/index'
import store from './store/index'
import App from './App.vue'
import servicePlugin from './scripts/service.js'
import emitterPlugin from './scripts/emitter.js'
import ElementUi from 'element-ui'
// import './directives/index.js'

Vue.use(servicePlugin)
Vue.use(emitterPlugin)
Vue.use(ElementUi)

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})

const isDebug_mode = process.env.NODE_ENV !== 'production';
Vue.config.debug = isDebug_mode;
Vue.config.devtools = isDebug_mode;
Vue.config.productionTip = isDebug_mode;
